package qtdz7;

import javax.swing.*;

public class Bomb extends SeaObject {
    Bomb(int x, int y) {
        super(9, 12, x, y, 3);
    }

    public void move() {
        y += speed;
    }

    public ImageIcon getImage() {
        return Images.bomb;
    }

    //判断炸弹是否越界
    public boolean isOutOfBounds() {
        return this.y >= World.HEIGHT;
    }
}
